#!/bin/bash -e

set -x
systemctl stop obsscheduler

rsync -avu  /var/obs/repos/Euler-22.03-LTS-SP1/standard_x86_64/noarch/ /var/obs/build/HZ-SP1-Base/standard_x86_64/x86_64/\:full/
rsync -avu  /var/obs/repos/Euler-22.03-LTS-SP1/standard_x86_64/x86_64/ /var/obs/build/HZ-SP1-Base/standard_x86_64/x86_64/\:full/
chown -R obsrun:obsrun /var/obs/build/HZ-SP1-Base

systemctl start obsscheduler
obs_admin --rescan-repository HZ-SP1-Base standard_x86_64 x86_64

echo "Done!"
